home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
komercni software
/
zoner
/
zps8_cz.exe
/
{app}
/
HTMLPublish
/
compactPHP.zht
/
admin.php
next >
Wrap
Text File
|
2006-03-22
|
2KB
|
72 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=#{ENCODING}">
<meta name="generator" content="Zoner Photo Studio 8">
<link rel="stylesheet" type="text/css" href="image.css" title="displaysheet">
<title>Správa komentářů</title>
</head>
<body>
<h2>Komentáře</h2><br>
<?php
$location = "text";
$all = opendir($location);
while ($file = readdir($all))
{
if (!is_dir($location.'/'.$file) and $file <> ".." and $file <> "." and $file <> "zpsfiles.md5")
{
$files[]=$file;
}
}
closedir($all);
if ($files)
natcasesort($files);
$passw="";
if (isset($_COOKIE['zpsgallery']))
$passw=$_COOKIE['zpsgallery'];
include("getpass.php");
if (strcmp($passw,"")==0 || !passwordvalid($passw))
{
$form = <<<ENDH
<h4>Vlo┼╛te heslo pro administraci:</h4>
<form METHOD="POST" ACTION="setpass.php">
<input TYPE="PASSWORD" NAME="Password" SIZE="46" value="">
<input type=submit value="Odeslat">
</form>
<br>
ENDH;
echo $form;
include_once("imgcmt1.php");
}
else
include_once("imgcmt2.php");
if ($files)
foreach ($files as $file)
{
echo "<h4>";
echo $file;
echo "</h4>";
$id=substr($file,0,strlen($file)-4);
$comments=vshowcomments($id);
if (strcmp($comments,"")!=0)
{
echo "<div class=\"imagecomments\">";
echo $comments;
echo "</div>";
}
echo "<br>";
}
?>
</body>
</html>